<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 用户统计</li>
        </ul>
    </div>
    <div id="rightside">
        <div class="contentcontainer user_info">
            <div class="headings altheading">
                <h3>用户统计</h3>
            </div>
            <div class="contentbox" style="min-height:900px;">
                <div class="extrabottom" style="min-height:60px;">
                    <form method="get" action="admin.php" class="form-inline" role="form" >
                    	<div class="input-prepend" id="count_uid">
							<span class="add-on">用户</span>
							<input class="span2" id="prependedInput" type="text" placeholder="UID1" name="uid1" value="{$uidsArr[0]}" >
							<input class="span2" id="prependedInput" type="text" placeholder="UID2" name="uid2" value="{$uidsArr[1]}" >
						</div>
                		排序选择:
                       	<select name="orderby" id="orderby" class="span2" >
                       	 	<option value="level" class="level_click" {$orderbyArr['level']}>等级数 </option>
                       	 	<option value="topicTimes" class="other_click" {$orderbyArr['topicTimes']}>话题数 </option>
                       	 	<option value="diaryTimes" class="other_click" {$orderbyArr['diaryTimes']}>日记数 </option>
                       	 	<option value="likeTimes" class="other_click" {$orderbyArr['likeTimes']}>喜欢数 </option>
                       	 	<option value="commentTimes" class="other_click" {$orderbyArr['commentTimes']}>评论数 </option>
                       	 	<option value="meFollowTimes" class="other_click" {$orderbyArr['meFollowTimes']}>关注数 </option>
                       	 	<option value="followMeTimes" class="other_click" {$orderbyArr['followMeTimes']}>粉丝数 </option>
                       	 	<option value="registerDate" class="date_click" {$orderbyArr['registerDate']}>注册时间 </option>
                       	 </select> 
                      	  选择表:
                      	 <select name="sheetNum" class="span2" >
                         	<option value="0"{$sheetNumArr[0]}>0</option>
                         	<option value="1"{$sheetNumArr[1]}>1</option>
                         	<option value="2"{$sheetNumArr[2]}>2</option>
                         	<option value="3"{$sheetNumArr[3]}>3</option>
                         	<option value="4"{$sheetNumArr[4]}>4</option>
                         	<option value="5"{$sheetNumArr[5]}>5</option>
                         	<option value="6"{$sheetNumArr[6]}>6</option>
                         	<option value="7"{$sheetNumArr[7]}>7</option>
                         </select> 
                         <select name="ordersc" class="span2" >
                       	 	<option value="desc"{$orderscArr['desc']}>降序</option>
                       	 	<option value="acs"{$orderscArr['acs']}>升序</option>
                       	 </select> 
                         <select name="perpage" class="span2" >
                            <option value="20"{$perpageArr[20]}>每页显示20个</option>
                            <option value="50"{$perpageArr[50]}>每页显示50个</option>
                            <option value="100"{$perpageArr[100]}>每页显示100个</option>
                         </select>
                         <span id="show" style="margin-top:10px;"></span>
                         <input type="hidden" value="count_user" name="ac">
                         <input type="hidden" value="op" name="1">
                         <input type="hidden" value="1" name="query">
                         <input type="submit" class="btn" value="查询" class="btn" /> 
                    </form>
                </div>
                <div style="clear: both;"></div>
                <div class="extrabottom">
                <table width="100%" class="table table-striped">
                    <thead>
                        <tr>
                            <th>昵称</th>
                            <th>等级数</th>
                            <th>话题数</th>
                            <th>日记数</th>
                            <th>喜欢数</th>
                            <th>评论数</th>
                            <th>关注数</th>
                            <th>粉丝数</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <!--{if $result}-->
                    <tbody>
                    	<!--{loop $result $value}-->
                        <tr>
                            <td>
                            	<a href="admin.php?ac=user&uid={$value[uid]}" title="{$value[nickname]}" target="_blank">{$value[nickname]}</a>
                            </td>
                            <td>{$value[level]}</td>
                            <td>{$value[topicTimes]}</td>
                            <td>{$value[diaryTimes]}</td>
                            <td>{$value[likeTimes]}</td>
                            <td>{$value[commentTimes]}</td>
                            <td>{$value[meFollowTimes]}</td>
                            <td>{$value[followMeTimes]}</td>
                            <td><a href="admin.php?ac=user&uid={$value[uid]}" target="_blank">
                            	<img src="static/img/icons/gif_people.gif" width="24" height="24" /></a>
                            </td>
                        </tr>
                        <!--{/loop}-->
                    </tbody>
                    <!--{/if}-->
                </table>
                </div>
                <div class="extrabottom1">
                    <ul>
                        <li><img src="static/img/icons/gif_people.gif" />作者信息</li>
                    </ul>
                    <div class="bulkactions">
                        <ul class="pagination">
                       		<!--{if $prevpurl!=''}-->
                            <li class="text"><a href="" title="">当前第{$nowPage}页</a></li>
                            <li class="text"><a href="{$firstpurl}" title="">返回首页</a></li>
                            <li class="text"><a href="{$prevpurl}" title="">上一页</a></li>
                            <!--{/if}-->
                            <li class="text"><a href="{$nextpurl}" title="">下一页</a></li>
                        </ul>
                        <div style="clear: both;"></div>
                    </div>
                </div>
                <div style="clear: both;"></div>
            </div>
        </div>
	    <div style="display:none;">
	    	<input type="hidden" id="select" value="{$param[orderby]}">
	  
	    	<span id='count_level' class="input-prepend">
	    		<span class="add-on">等级数</span>
	    		<input type='text' name='level1' class='span1' id="prependedInput" placeholder="level1" value="{$levelArr[0]}"/>-
	    		<input type='text' name='level2' class='span1' id="prependedInput" placeholder="level2" value="{$levelArr[1]}"/>
	    	</span>
	    	<span id='count_date' class="input-prepend">
	    		<span class="add-on">注册时间</span>
	    		<input type='text' name='registerDate1' class='span2' id="prependedInput" placeholder="registerDate1" value="{$registerDateArr[0]}"/>-
	    		<input type='text' name='registerDate2' class='span2' id="prependedInput" placeholder="registerDate2" value="{$registerDateArr[1]}"/>
	    	</span>
	    	<div id='count_others' class="input-prepend" style="margin: 10px 0px;">
	    		<span class="add-on">话题数</span> 
	    		<input type='text' name='topicTimes1' class='span1' id="prependedInput" value="{$topicTimesArr[0]}"/>
	    		<input type='text' name='topicTimes2' class='span1' id="prependedInput" value="{$topicTimesArr[1]}"/>
	    		<span class="add-on">日记数</span>
	    		<input type='text' name='diaryTimes1' class='span1' id="prependedInput" value="{$diaryTimesArr[0]}"/>
	    		<input type='text' name='diaryTimes2' class='span1' id="prependedInput" value="{$diaryTimesArr[0]}"/>
	    		<span class="add-on">喜欢数</span>
	    		<input type='text' name='likeTimes1' class='span1' id="prependedInput" value="{$likeTimesArr[0]}"/>
	    		<input type='text' name='likeTimes2' class='span1' id="prependedInput" value="{$likeTimesArr[1]}"/>
	    		<span class="add-on">评论数</span>
	    		<input type='text' name='commentTimes1' class='span1' id="prependedInput" value="{$commentTimesArr[0]}"/>
	    		<input type='text' name='commentTimes2' class='span1' id="prependedInput" value="{$commentTimesArr[1]}"/>
	    		<span class="add-on">关注数</span>
	    		<input type='text' name='meFollowTimes1' class='span1' id="prependedInput" value="{$meFollowTimesArr[0]}"/>
	    		<input type='text' name='meFollowTimes2' class='span1' id="prependedInput" value="{$meFollowTimesArr[1]}"/>
	    		<span class="add-on">粉丝数</span>
	    		<input type='text' name='followMeTimes1' class='span1' id="prependedInput" value="{$followMeTimesArr[0]}"/>
	    		<input type='text' name='followMeTimes2' class='span1' id="prependedInput" value="{$followMeTimesArr[1]}"/>
	    	</div>
	    </div>
    </div>
    
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->
    <script>
    	$(function(){
	    	$(".level_click").bind('click',function(){
	    		$("#show").html("");
	    		$('#count_level').clone().appendTo("#show");
	    	});

	    	$(".date_click").bind('click',function(){
	    		$("#show").html("");
	    		$('#count_date').clone().appendTo("#show");
	    	});
	    	
	    	$(".other_click").bind('click',function(){
	    		$("#show").html("");
	    		$('#count_others').clone().appendTo("#show");
	    	});
    	});	
    </script>